/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package settingsManager;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;

/**
 *
 * @author rbs
 */
public class SettingsManager {


    private Properties properties;
    public SettingsManager(String file) throws IOException {
        properties = new Properties();
        properties.load(new FileInputStream("filename.properties"));
    }

    public Properties getProperties()
    {
        return properties;
    }

    public void setProperties(Properties properties)
    {
        properties = this.properties;
    }

    public String getProperty(String name)
    {
        return properties.getProperty(name);
    }

    public String getProperty(String name, String standard)
    {
        return properties.getProperty(name, standard);
    }

    public void SaveProperties() throws IOException
    {
        properties.store(new FileOutputStream("filename.properties"), null);
    }
}
